home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 5
/
Apprentice-Release5.iso
/
Source Code
/
C
/
Frameworks
/
Extension Shell 1.5
/
Sample Extensions (1.5)
/
Bell Test ƒ
/
BT AddrsTable.h
< prev
next >
Wrap
Text File
|
1996-04-12
|
2KB
|
42 lines
/* NAME:
BT AddrsTable.h
WRITTEN BY:
Dair Grant
DESCRIPTION:
Header file for BT AddrsTable.c, containing the definition of our
Address Table.
___________________________________________________________________________
*/
#ifndef __BT_ADDRSTABLE__
#define __BT_ADDRSTABLE__
//=============================================================================
// Structures
//-----------------------------------------------------------------------------
// The default address table has a "magic" value used to allow a Control
// Panel (for example) to make sure that it gets back what it expects when
// it asks Gestalt for the address table address. Recommended values of
// "magic" include any four letter character constant *other* than the
// Gestal selector which returns the address table address. The "version"
// value can be used for a similar sanity checking purpose. It allows
// changes in the format of the address table to be detected by all
// versions of a cdev/INIT pair. If a mismatch between expected and actual
// table versions occurs, appropriate action can be taken. Following these
// two fields an array of ProcPtrs.
//
// To extend the address table, add fields after theTable.
//-----------------------------------------------------------------------------
#pragma options align=mac68k
typedef struct {
long magicNumber;
long versionNumber;
ProcPtr theTable[3]; // We use entries 1 and 2
Handle theSound; // The noise to play
} BTAddressTable;
#pragma options align=reset
#endif